package com.banggood.upms.bean.vo;

import com.banggood.upms.bean.vo.validation.AdjustGroup;
import com.banggood.upms.bean.vo.validation.SearchGroup;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author XuChuangFeng
 */
@Data
public class UserTreeVo implements Serializable {

    private String userTreeId;

    @NotNull(message = "{validation.UserTreeVo.userId.NotNull}", groups = {SearchGroup.class, AdjustGroup.class})
    private String userId;

    private String treeId;

    /**
     * 添加操作的树ID列表
     */
    private List<String> newTreeIds;

    /**
     *树的类别，是角色还是部门
     */
    @NotNull(message = "{validation.UserTreeVo.treeType.NotNull}", groups = {SearchGroup.class, AdjustGroup.class})
    private String treeType;
}
